package com.epk.pic.mapper;

import com.epk.pic.po.PicTargetMain;
import com.epk.pic.po.PicTargets;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TargetMapper {

    List<PicTargets> selectTargetByMaimId(@Param("id") Long id);

    int deleteTargetByMaimId(@Param("id") Long id);

    int deleteTargetByMaimIdAndTag(PicTargets po);

    int savePicTargets(PicTargets po);;

    int savePicTargetMain(PicTargetMain po);;

    PicTargetMain selectTargetMain(@Param("targetName") String targetName);

    String selectTargetPath(@Param("lv") Integer lv, @Param("targetName") String targetName);

    List<PicTargetMain> selectTargetAndSub(@Param("lv") Integer lv, @Param("targetName") String targetName);


}
